using Newtonsoft.Json;

namespace WxLib.Model
{
    public class WxInitBody
    {
        public int Uin { get; set; }
        public string Sid { get; set; }
        public string Skey { get; set; }
        public string DeviceID { get; set; }

        public string ToJson()
        {
            return JsonConvert.SerializeObject
            (
                new
                {
                    BaseRequest = new WxInitBody
                    {
                        Uin = Uin,
                        Sid = Sid,
                        Skey = Skey,
                        DeviceID = DeviceID
                    }
                }
            );
        }
    }
}